*{
  margin: 0;
  padding: 0;
  font-family: '微软雅黑', sans-serif;
}

body{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010615;
  min-height: 100vh;
  flex-wrap: wrap;
}

.box{
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #060c21;
  margin:60px 40px;
}

.box::before{
  content: '';
  position: absolute;
  top:-2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #fff;
  z-index: -1;
}

.box::after{
  content: '';
  position: absolute;
  top:-2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #fff;
  filter: blur(40px);
  z-index: -2;
}

.box:nth-child(1)::before,
.box:nth-child(1)::after{
  background: linear-gradient(235deg, #89ff00, #010615, #00bcd4);
}
.box:nth-child(2)::before,
.box:nth-child(2)::after{
  background: linear-gradient(235deg, #ff005e, #010615, #fbff00);
}
.box:nth-child(3)::before,
.box:nth-child(3)::after{
  background: linear-gradient(235deg, #772aff, #010615, #2196f3);
}


.box .glass{
  position: absolute;
  top:0;
  left: 0;
  width: 50%;
  height: 100%;
  display: block;
  background: rgba(255, 255, 255, .1);
}

.box .content{
  padding: 20px;
  color: #fff;
  line-height: 2;
}